<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- 开发环境版本，包含了有帮助的命令行警告 -->
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
  <style>
  </style>
</head>

<body>
  <div id="app">
    <tr>

    </tr>
    <tr>

    </tr>
    <tr>
      
    </tr>
  </div>
  <script>
    const vm = new Vue({
      //绑定到上面view页面中的dom节点，该节点内部就可以使用vue的组件
      el: "#app",
      data() {
        return {
          goods: [
            {
              name: "斗破苍穹",
              price: 15,
              num: 0
            },
            {
              name: "大主宰",
              price: 20,
              num: 0
            },
            {
              name: "金瓶梅",
              price: 150,
              num: 0
            }

          ]
        }
      },
    })
  </script>
</body>

</html>